import { localeProps } from '../../utils'

const label = '间距'
const name = 'space'

export default {
  menu: 'aide',
  icon: 'mingcute:space-fill',
  label,
  name,
  rule() {
    return {
      type: 'div',
      wrap: {
        show: false
      },
      native: true,
      style: {
        width: '100%',
        height: '20px'
      },
      children: []
    }
  },
  props(_, { t }) {
    return [
      {
        type: 'object',
        field: 'formCreateStyle',
        native: true,
        props: {
          rule: localeProps(t, name + '.props', [
            {
              type: 'input',
              field: 'height',
              title: 'height'
            }
          ])
        }
      }
    ]
  }
}
